﻿<%@ Page Title="" Language="C#" MasterPageFile="~/_console/_console.Master" AutoEventWireup="true" CodeBehind="template-list.aspx.cs" Inherits="SmartSpace.WebApp._console.page.template_list" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolderHead" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderMenu" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolderTitle" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolderToolbar" runat="server">
    <a href="./template-add.aspx">create</a>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="ContentPlaceHolderContent" runat="server">
<div class="form">
    <table>
        <asp:Repeater ID="_ctlList" runat="server">
            <HeaderTemplate>
                <tr>
                    <th>-</th>
                    <th>name</th>
                    <th>-</th>
                </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td>
                        <asp:Image ImageUrl='<%# Eval("PreviewImageId","~/_handlers/_private/get-image.ashx?id={0}") %>' width="128" height="128" runat="server" />

                    </td>
                    <td><%# Eval("Name") %></td>
                    <td><a href='<%# Eval("Name","./template-edit.aspx?name={0}") %>' target="_blank">edit</a></td>
                </tr>
            </ItemTemplate>
        </asp:Repeater>
    </table>
        </div>
</asp:Content>
